pub fn new_birthday_probability(n: u32) -> f64 {
    if n < 2 {
        return 0.0;
    }
    let mut different_birthday_prob = 1.0;
    for i in 0..n {
        different_birthday_prob *= (365 - i) as f64 / 365.0;
    }
    1.0 - different_birthday_prob
}
